import request from '@/utils/request'

export default {

  formRequest: (url, method, data) => request({
    url: url,
    method: method,
    data: data
  }),

  add: (url, data) => request({
    url: url,
    method: 'Post',
    data: data
  }),

  edit: (url, data) => request({
    url: url,
    method: 'Put',
    data: data
  }),
}
